<template>
	<view class="container">
		<view class="header-box" :style="{height:height+'rpx'}">
			<image src="./static/back.png" mode="" class="header-back" @click="returns"></image>
			<text>商品列表</text>
			<text> </text>
		</view>
		<view class="body-box" :style="{height: body_height+'rpx'}">
			<view class="seat-box">
				<image src="./static/bg.png" alt=""></image>
				<view class="seat-tag">当前没有商品哦~</view>	
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				height: '',
				body_height: 0
			};
		},
		onLoad() {
			console.log(uni.getSystemInfoSync())
			// #ifdef MP
			this.height = uni.getSystemInfoSync().statusBarHeight * 2;
			// #endif
			// #ifdef H5
			this.height = 50
			// #endif
			// #ifdef APP-PLUS
			this.height = uni.getSystemInfoSync().statusBarHeight * 2;
			// #endif
			this.body_height = uni.getSystemInfoSync().screenHeight * 2 - this.height
		},
		onReady: function() {
			
		},
		methods: {
			jumpUrl(url) {
				uni.switchTab({
					url,
				});
			},
			// 后退
			returns() {
				// #ifdef H5
				return history.back();
				// #endif
				// #ifndef H5
				return uni.navigateBack({
					delta: 1,
				})
				// #endif
			}
		},
	};
</script>

<style scoped lang="scss">
	.container{
		width: 750rpx;
		height: 100vh;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		.header-box{
			width: 100%;
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: center;	
			.header-back{
				width: 48rpx;
				height: 48rpx;
			}
		}
		.body-box{
			width: 100%;
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			justify-content: center;
			align-items: center;
			.seat-box{
				width: 100%;
				height: 500rpx;
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;
				justify-content: center;
				image {
					width: 400rpx;
					height: 400rpx;
				}
				.seat-tag{
					width: 100%;
					height: 50rpx;
					line-height: 50rpx;
					text-align: center;
					font-size: 24rpx;
					color:#999;
				}
			}
		}
	}
</style>